package com.hzk.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @auoter:jackh
 */
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务器异常"),

    /**
     * 错误
     * 50000021x
     */
    LOGIN_ERROR(50000210,"用户名或密码错误"),
    NAME_ERROR(50000210,"名字错误"),
    ID_ERROR(50000210,"身份证不存在"),
    ID2_ERROR(50000210,"身份证不正确"),
    pwd_ERROR(50000210,"密码错误"),
    p_ERROR(50000210,"操作频繁请稍后重试"),
    PLUGIN_ERROR(50000217,"该手机号已被注册"),
    IDCARD_ERROR(50000218,"身份证格式错误"),
    MOBILE_ERROR(50000211,"手机号格式错误"),
    BIND_ERROR(50000212,"手机号格式错误"),
    PASSWORD_ERROR(50000213,"密码错误"),
    NULL_USER_ERROR(50000214,"用户不存在,请重新登录"),
    UPDATE_PASSWORD_ERROR(50000215,"用户不存在,请重新登录"),
    RELOGIN_ERROR(50000216,"该账号已在别的ip进行登录"),

    /**
     * 库存校验
     * :500003Xx
     */
   RESECKILL_ERROR(500000310,"一个用户限抢一份商品,您已经参加过秒杀了不能再次参加"),
   NULLGOODS_ERROR(500000311,"库存不足"),
   NULLGOOD_ERROR(500000311,"商品不存在"),
    /**
     * 订单校验
     * 5000004XX
     */
    NULL_ORDER_ERROR(500000410,"查询不到该订单的信息"),
    /*NULL_ORDER_ERROR(500000410,"查询不到该订单的信息");*/
    /**
     * 秒杀失败
     * 500000510
     */
    SECKILL_ERROR(500000510,"秒杀失败"),
    SECKILL_INTERT_ERROR(500000511,"插入秒杀数据失败"),
    appllication_ERROR(500000512,"初筛失败"),
    Reappllication_ERROR(500000513,"您已初筛失败！"),
    Reappllication_SECERROR(500000513,"您已初筛成功！"),

    /**
     * 登陆限制
     * 500000610
     */
    SECKILL_REFULS(500000610,"访问频繁，请几秒后再尝试"),
    LOGIN_FAILE(500000610,"登陆失败"),
    LOGIN_IPS_REFULS(50000611,"当前用户ip访问过多"),
    /**
     * 淘米商品
     * 50000710
     */
    NULL_TAOMI_GOODS(50000710,"获取湘米商品失败"),
    NULL_TAOMI_COUNT_ERROR(50000710,"您的湘米不足"),
    TAOMI_(200,"兑换成功"),
    /**
     * 后台的对象
     * 50000810
     */
    DELETE_ERROR(50000810,"删除失败"),
    ADD_ERROR(50000811,"添加失败"),
    SELECT_Error(50000812,"查找失败"),
    NULL_FORM_ERROR(50000812,"无申请列表"),
    NULL_ORDERS_ERROR(50000812,"无订单列表"),
    NULL_USER_LIST(50000813,"无用户列表"),
    NULL_GOODS_LIST(50000813,"无商品列表"),
    NUL_LIST(50000813,"抱歉，您并无订单"),
    OPRATION_ERROR(50000813,"操作失败"),
    a_ERROR(50000813,"您的银行卡余额不足，请办理后重试！"),
    aa_ERROR(50000813,"存入金额超过当日限额"),
    aaa_ERROR(50000813,"存入金额超过单人限额"),
    aaaa_ERROR(50000813,"存入金额低于起存"),

    /**
     *
     */
    NULL_LIST_ERROR(50000910,"无列表");
    private final Integer code;
    private final String message;

}
